<extend file='../master'/>
<block name="content">
<style>
	.ng-cloak{
		display: none;
	}
</style>
	<form action="" method="post" id="module" ng-controller="moduleCtrl" class="form-horizontal ng-cloak" role="form" ng-cloak >
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title" ng-if="{{$_GET['m']=='base'}}">消息管理</h3>
				<h3 class="panel-title" ng-if="{{$_GET['m']=='news'}}">图文管理</h3>
			</div>
			<div class="panel-body">
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">关键词</label>
					<div class="col-sm-10">
						<input type="text" name="keyword" class="form-control" id="" placeholder="" value="{{$data['keyword']}}">
					</div>
				</div>
			</div>
		</div>
		{{$messageField}}
		<div class="form-group">
			<div class="col-sm-10">
				<button type="submit" class="btn btn-primary">保存</button>
				<a href="javascript:history.back();" type="button" class="btn btn-success">返回</a>
			</div>
		</div>

	</form>
</block>
<script>
	require(['angular', 'util','underscore'], function (angular, util,underscore) {
		angular.module('module', []).controller('moduleCtrl', ['$scope', function ($scope) {
			if (jQuery.isFunction(module)) {
				module($scope,util)
			}
			$('form').submit(function () {
				if (jQuery.isFunction(submit)) {
					submit($scope);
				}
			})

		}]);
		angular.bootstrap(document.getElementById('module'), ['module']);
	});
</script>